/*
 * RoomSafely.h
 *
 *  Created on: 04.11.2013
 *      Author: ulgish
 */

#ifndef ROOMSAFELY_H_
#define ROOMSAFELY_H_

#include "Room.h"
#include <semaphore.h>
namespace DT {

class RoomSafely: public DT::Room {
	sem_t semaphore;
	RoomSafely(const RoomSafely& orig);
public:
	RoomSafely(const int& maxCount);
	virtual void feed(const int& timeOfFeeding, const Thinker* thinker);
	virtual ~RoomSafely();
};

}

#endif /* ROOMSAFELY_H_ */
